import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import "./styles/reset.css";
import "./styles/iconfont.css";
import "./mock";

//引入懒加载
import VueLazyload from "vue-lazyload";
import error from "./assets/images/error.png";
import loading from "./assets/images/loading.gif";

Vue.use(VueLazyload, {
	preLoad: 1.3, // 预载高度比例
	error: error, // 加载失败时图像
	loading: loading, // 加载时图像
	attempt: 2 // 尝试次数
});

Vue.config.productionTip = false;

new Vue({
	router,
	store,
	render: (h) => h(App)
}).$mount("#app");
